package com.cw1.bridge;

/**
 * @Author qiuMi
 * @description 桥接模式 - 手机基类
 * @Date 2022-11-15 21:48
 **/
public abstract class Phone {
    private Brand brand;

    /**
     * 构造器
     *
     * @param brand brand
     */
    public Phone(Brand brand) {
        this.brand = brand;
    }

    void open() {
        this.brand.open();
    }

    void close() {
        this.brand.close();
    }

    void call() {
        this.brand.call();
    }
}
